import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: Scanner的使用
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-04-15  19:44
 */
public class Test {
    public static void main(String[] args) {
        Scanner  scanner = new Scanner(System.in);
        System.out.println("请输入你的名字:");
        String name = scanner.nextLine();
        System.out.println("姓名:"+name);

        System.out.println("请输入你的年龄:");
        int age = scanner.nextInt();
        System.out.println("年龄:"+age);

        System.out.println("请输入你的薪水:");
        float salary = scanner.nextFloat();
        System.out.println("薪水："+salary);

        System.out.println("你的信息：");
        System.out.println("姓名："+name+"\n"+"年龄:"+age+"\n"+"薪水"+salary+"\n");
    }
}
